<include file="../header" />
</head>
<script language="javascript" src="/Template/js/ImgPreview.js"></script>
<body class="J_scroll_fixed">
<script type="text/javascript">
    function typeSelect(name) {
        $("#3C").hide();
        $("#4C").hide();
        $("#N3N4").hide();
        $("#单腰").hide();
        var select = document.getElementById(name);
        select.style.display="block";
        $("#group-design").hide();
    };

    function curveSelect(name) {
        $("#group-design").show();
        $(".design").hide();
        $(".trimline").hide();
        var selectDesign = document.getElementById(name+"-design");
        selectDesign.style.display="block";
//        var selectTrimline = document.getElementById(name.substring(0,1)+"-trimline");
//        selectTrimline.style.display="block";
    };

    $(function() {
        $("input[name='step1_id[]']:checkbox").each(function(){     //遍历页面中所有的checkbox
            $(this).click(function(){       //为页面中每一个checkbox设置点击事件
                if($(this).attr('checked')){ //如果有checkbox状态为选中
                    $("input[name='step1_id[]']:checkbox").removeAttr('checked'); //移除checked属性，改变checkbox状态为未选中(为页面中所有checkbox复选框添加设置)
                    //$(':checkbox').attr('disabled','disabled'); //或者直接设置checkbox复选框为禁用(为页面中所有checkbox复选框添加设置)
                    $(this).attr('checked','checked'); //为当前点击选中的checkbox复选框添加checked属性
                }else{
                    $(this).attr('checked','checked');
                }
            });
        });
        $("input[name='step2_id[]']:checkbox").each(function(){
            $(this).click(function(){
                if($(this).attr('checked')){
                    $("input[name='step2_id[]']:checkbox").removeAttr('checked');
                    $(this).attr('checked','checked');
                }else{
                    $(this).attr('checked','checked');
                }
            });
        });

        if("{$hisRx.patient_name}" != ""){
            if(confirm("是否加载 {$hisRx.patient_name}_{$hisRx.side}_{$hisRx.admin_name}({$hisRx.update_time}) 更新的处方记录？")){
                var id = "{$workorder.workorder_id}";
                var hisId = "{$hisRx.rx_common_id}";

                var url ="/admin/workorder/rx?id="+id+"&hisId="+hisId;
                window.location.href = url;
            }
        }
        $("select[name='patient']").change(function () {
            var id = "{$workorder.workorder_id}";
            var hisId = $("select[name='patient']").val();
            if(!confirm("是否加载 "+$("select[name='patient']").find("option:selected").text()+"的处方记录？")){
                return false;
            }else {
                var url = "/admin/workorder/rx?id=" + id + "&hisId=" + hisId;
                window.location.href = url;
            }
        });

        $("input[name=completed]").click(function() {
            if($("input[name=completed]").is(':checked')) {
                $("button.btn_submit").text("完成");
            }else{
                $("button.btn_submit").text("更新");
            }
        });

        $("button.btn_submit").click(function() {
            if($("input[name=completed]").is(':checked')) {
                if (confirm("勾选'完成'后提交处方单将无法再次修改，是否继续提交")) {
                    $("button.btn_submit").hide();
                } else {
                    return false;
                }
            }else{
                $("button.btn_submit").hide();
            }
        });

        if("{$rx.rt0}" != ""){
            switch('{$rx.rt0}') {
                case "0":
                    $("#3C").show();
                    if("{$rx.rt1}" != ""){
                        $num = "{$rx.rt1}";
                        $num++;
                        var selectDesign = document.getElementById("A" +$num+"-design");
                        selectDesign.style.display="block";
//                        $("#A-trimline").show();
                        $("#group-design").show();
                    }
                    break;
                case "1":
                    $("#4C").show();
                    if("{$rx.rt2}" != ""){
                        $num = "{$rx.rt2}";
                        $num++;
                        var selectDesign = document.getElementById("B" +$num+"-design");
                        selectDesign.style.display="block";
//                        $("#B-trimline").show();
                        $("#group-design").show();
                    }
                    break;
                case "2":
                    $("#N3N4").show();
                    if("{$rx.rt3}" != ""){
                        $num = "{$rx.rt3}";
                        $num++;
                        var selectDesign = document.getElementById("C" +$num+"-design");
                        selectDesign.style.display="block";
//                        $("#C-trimline").show();
                        $("#group-design").show();
                    }
                    break;
                case "3":
                    $("#单腰").show();
                    if("{$rx.rt4}" != ""){
                        $num = "{$rx.rt4}";
                        $num++;
                        var selectDesign = document.getElementById("E" +$num+"-design");
                        selectDesign.style.display="block";
//                        $("#E-trimline").show();
                        $("#group-design").show();
                    }
                    break;
                default:
                    $("#group-design").hide();
                    break;
            }
        }

    })
</script>
<style>
    .control-label {
        font-weight: bold;
    }
    input.input {
        margin-top: 2px;
    }
</style>
<div class="wrap jj">
    <php>$imgVersion = "2020042501";</php>
    <div class="common-form">
        <form method="post" class="form-horizontal J_ajaxForm" action="{:U('Workorder/rx_sco_post')}" onkeydown="if(event.keyCode==13)return false;">
            <input type="hidden" name="workorderId" value="{$workorderId}" />
            <input type="hidden" name="rxId" value="{$rxId}" />
            <fieldset>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls" style="font-weight: bold; font-size: larger">
                        {$workorder.patient_name}
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">历史病例:</label>
                    <div class="controls">
                        <select name="patient" style="width: 600px">
                            {:getRxCommonSelectOptionHtml($workorder['rx_common_id'], $workorder['patient_name'], $workorder['workorder_type'])}
                        </select>
                    </div>
                </div>
                <div style="margin-left: 11rem" class="control-group">
                    <if condition="$workorder['photo0'] neq ''">
                        <span style="color: #45a1dd; font-weight: bold; font-size: 18px;margin-left: 1rem">左键放大显示、右键保存图片：</span>
                    </if>
                    <br/><br/>
                    <div>
                        <if condition="$workorder['photo0'] neq ''">
                            <div style="float:left;margin-left: 1rem" class="container-item">
                                <img src="{$workorder['photo0']}" id="img1" style="width:400px;height:auto;">
                            </div>
                        </if>
                        <if condition="$workorder['photo1'] neq ''">
                            <div style="float:left;margin-left: 1rem" class="container-item">
                                <img src="{$workorder['photo1']}" id="img2" style="width:400px;height:auto;">
                            </div>
                        </if>
                        <if condition="$workorder['photo2'] neq ''">
                            <div style="float:left;margin-left: 1rem" class="container-item">
                                <img src="{$workorder['photo2']}" id="img3" style="width:400px;height:auto;">
                            </div>
                        </if>
                    </div>
                </div>
                <hr class="half-rule">
                <div class="control-group">
                    <label class="control-label"></label>
                    <span style="font-weight: bold; font-size: 18px; margin-left: -140px">确定侧凸类型：</span>
                    <div class="control-group">
                        <php>
                            for($i=0; $i<4; $i++) {
                            $step1Arr[$i]["id"] = $i;
                            $step1Arr[$i]["name"] = $formDict["step1_".$i];
                            }
                            if (strlen($rx["rt0"]) > 0) {
                            $step1_id=explode(',', $rx["rt0"]);
                            }

                        </php>
                        <foreach name="step1Arr" item="vo">
                            <br/>
                            <label class="checkbox inline">
                                <php>$step1_id_checked=in_array($vo['id'],$step1_id)?"checked":"";</php>
                                <input style="margin-top: 5.75rem" value="{$vo.id}" type="checkbox" name="step1_id[]" {$step1_id_checked} onclick='javascript:typeSelect("{$vo.name}")'>{$vo.name}
                                <img style="width:auto;height:200px;" src="/Template/images/sco-{$vo.name}.jpg?v={$imgVersion}"/>
                            </label>
                            <br/>
                        </foreach>
                    </div>
                </div>
                <hr class="half-rule">
                <div class="control-group" id="3C" style="display: none;">
                    <label class="control-label"></label>
                    <span style="font-weight: bold; font-size: 18px; margin-left: -140px">确定 3C 曲线分型-A1/A2/A3：</span>
                    <div class="control-group">
                        <php>
                            for($i=0; $i<3; $i++) {
                            $step2_3C_Arr[$i]["id"] = $i;
                            $step2_3C_Arr[$i]["name"] = $formDict["step2_3C_".$i];
                            }
                            if (strlen($rx["rt1"]) > 0) {
                            $step2_3C_id=explode(',', $rx["rt1"]);
                            }

                        </php>
                        <foreach name="step2_3C_Arr" item="vo">
                            <br/>
                            <label class="checkbox outline">
                                <php>$step2_3C_id_checked=in_array($vo['id'],$step2_3C_id)?"checked":"";</php>
                                <input style="margin-top: 7.3rem" value="{$vo.id}" type="checkbox" name="step2_id[]" {$step2_3C_id_checked} onclick='javascript:curveSelect("{$vo.name}")'>{$vo.name}
                                <img style="width:auto;height:250px;" src="/Template/images/sco-{$vo.name}.jpg?v={$imgVersion}"/>
                            </label>
                            <br/>
                        </foreach>
                    </div>
                    <hr class="half-rule">
                </div>

                <div class="control-group" id="4C" style="display: none;">
                    <label class="control-label"></label>
                    <span style="font-weight: bold; font-size: 18px; margin-left: -140px">确定 4C 曲线分型-B1/B2：</span>
                    <div class="control-group">
                        <php>
                            for($i=0; $i<2; $i++) {
                            $step2_4C_Arr[$i]["id"] = $i;
                            $step2_4C_Arr[$i]["name"] = $formDict["step2_4C_".$i];
                            }
                            if (strlen($rx["rt2"]) > 0) {
                            $step2_4C_id=explode(',', $rx["rt2"]);
                            }

                        </php>
                        <foreach name="step2_4C_Arr" item="vo">
                            <br/>
                            <label class="checkbox outline">
                                <php>$step2_4C_id_checked=in_array($vo['id'],$step2_4C_id)?"checked":"";</php>
                                <input style="margin-top: 7.3rem" value="{$vo.id}" type="checkbox" name="step2_id[]" {$step2_4C_id_checked} onclick='javascript:curveSelect("{$vo.name}")'>{$vo.name}
                                <img style="width:auto;height:250px;" src="/Template/images/sco-{$vo.name}.jpg?v={$imgVersion}"/>
                            </label>
                            <br/>
                        </foreach>
                    </div>
                    <hr class="half-rule">
                </div>

                <div class="control-group" id="N3N4" style="display: none;">
                    <label class="control-label"></label>
                    <span style="font-weight: bold; font-size: 18px; margin-left: -140px">确定 N3N4 曲线分型-C1/C2：</span>
                    <div class="control-group">
                        <php>
                            for($i=0; $i<2; $i++) {
                            $step2_N3N4_Arr[$i]["id"] = $i;
                            $step2_N3N4_Arr[$i]["name"] = $formDict["step2_N3N4_".$i];
                            }
                            if (strlen($rx["rt3"]) > 0) {
                            $step2_N3N4_id=explode(',', $rx["rt3"]);
                            }

                        </php>
                        <foreach name="step2_N3N4_Arr" item="vo">
                            <br/>
                            <label class="checkbox outline">
                                <php>$step2_N3N4_id_checked=in_array($vo['id'],$step2_N3N4_id)?"checked":"";</php>
                                <input style="margin-top: 7.3rem" value="{$vo.id}" type="checkbox" name="step2_id[]" {$step2_N3N4_id_checked} onclick='javascript:curveSelect("{$vo.name}")'>{$vo.name}
                                <img style="width:auto;height:250px;" src="/Template/images/sco-{$vo.name}.jpg?v={$imgVersion}"/>
                            </label>
                            <br/>
                        </foreach>
                    </div>
                    <hr class="half-rule">
                </div>

                <div class="control-group" id="单腰" style="display: none;">
                    <label class="control-label"></label>
                    <span style="font-weight: bold; font-size: 18px; margin-left: -140px">确定 单腰 曲线分型-E1/E2：</span>
                    <div class="control-group">
                        <php>
                            for($i=0; $i<2; $i++) {
                            $step2_SW_Arr[$i]["id"] = $i;
                            $step2_SW_Arr[$i]["name"] = $formDict["step2_单腰_".$i];
                            }
                            if (strlen($rx["rt4"]) > 0) {
                            $step2_SW_id=explode(',', $rx["rt4"]);
                            }

                        </php>
                        <foreach name="step2_SW_Arr" item="vo">
                            <br/>
                            <label class="checkbox outline">
                                <php>$step2_SW_id_checked=in_array($vo['id'],$step2_SW_id)?"checked":"";</php>
                                <input style="margin-top: 7.3rem" value="{$vo.id}" type="checkbox" name="step2_id[]" {$step2_SW_id_checked} onclick='javascript:curveSelect("{$vo.name}")'>{$vo.name}
                                <img style="width:auto;height:250px;" src="/Template/images/sco-{$vo.name}.jpg?v={$imgVersion}"/>
                            </label>
                            <br/>
                        </foreach>
                    </div>
                    <hr class="half-rule">
                </div>

                <div-- id="group-design" style="display: none;">
                    <div class="control-group">
                        <label class="control-label"></label>

                        <div style="margin-top: 10px" class="control-group">
                            <label style="width:220px;height:auto; margin: 0 50px 0 50px; display: none;" class="control-label design" id="A1-design"><img src="/Template/images/sco-A1-design.jpg?v={$imgVersion}"></label>
                            <label style="width:220px;height:auto; margin: 0 50px 0 50px; display: none;" class="control-label design" id="A2-design"><img src="/Template/images/sco-A2-design.jpg?v={$imgVersion}"></label>
                            <label style="width:220px;height:auto; margin: 0 50px 0 50px; display: none;" class="control-label design" id="A3-design"><img src="/Template/images/sco-A3-design.jpg?v={$imgVersion}"></label>
                            <label style="width:220px;height:auto; margin: 0 50px 0 50px; display: none;" class="control-label design" id="B1-design"><img src="/Template/images/sco-B1-design.jpg?v={$imgVersion}"></label>
                            <label style="width:220px;height:auto; margin: 0 50px 0 50px; display: none;" class="control-label design" id="B2-design"><img src="/Template/images/sco-B2-design.jpg?v={$imgVersion}"></label>
                            <label style="width:220px;height:auto; margin: 0 50px 0 50px; display: none;" class="control-label design" id="C1-design"><img src="/Template/images/sco-C1-design.jpg?v={$imgVersion}"></label>
                            <label style="width:220px;height:auto; margin: 0 50px 0 50px; display: none;" class="control-label design" id="C2-design"><img src="/Template/images/sco-C2-design.jpg?v={$imgVersion}"></label>
                            <label style="width:220px;height:auto; margin: 0 50px 0 50px; display: none;" class="control-label design" id="E1-design"><img src="/Template/images/sco-E1-design.jpg?v={$imgVersion}"></label>
                            <label style="width:220px;height:auto; margin: 0 50px 0 50px; display: none;" class="control-label design" id="E2-design"><img src="/Template/images/sco-E2-design.jpg?v={$imgVersion}"></label>

                            <div class="controls">
                                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp对线要求：
                                <textarea style="height:4rem; width: 32rem;" name="long0">{$rx.long0}</textarea>
                                <br/><br/>
                                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp矫形器设计：
                                <textarea style="height:4rem; width: 32rem;" name="long1">{$rx.long1}</textarea>
                                <br/><br/>
                                切割线特殊要求：
                                <textarea style="height:4rem; width: 32rem;" name="long2">{$rx.long2}</textarea>
                            </div>

                            <!--div class="controls" style="margin-bottom: 10px">
                                对线要求：
                                <input type="text" class="input" style="width: 600px;" name="rt34" value="{$rx.rt34}">
                            </div>
                            <div class="controls">
                                PAD1：
                                <input type="text" class="input" style="width: 600px;margin-left: 20px" name="rt5" value="{$rx.rt5}">
                            </div>
                            <div class="controls">
                                PAD2：
                                <input type="text" class="input" style="width: 600px;margin-left: 20px" name="rt6" value="{$rx.rt6}">
                            </div>
                            <div class="controls">
                                PAD3：
                                <input type="text" class="input" style="width: 600px;margin-left: 20px" name="rt7" value="{$rx.rt7}">
                            </div>
                            <div class="controls">
                                PAD4：
                                <input type="text" class="input" style="width: 600px;margin-left: 20px" name="rt8" value="{$rx.rt8}">
                            </div>
                            <div class="controls"  style="margin-bottom: 10px">
                                PAD5：
                                <input type="text" class="input" style="width: 600px;margin-left: 20px" name="rt9" value="{$rx.rt9}">
                            </div>
                            <div class="controls">
                                其他要求：
                                <input type="text" class="input" style="width: 600px" name="rt10" value="{$rx.rt10}">
                            </div-->
                        </div>
                    </div>

                    <hr class="half-rule">

                    <div class="control-group">
                        <label style="width:300px;height:auto;" class="control-label"><img src="/Template/images/rx_SCO.png?v={$imgVersion}"></label>
                        <br/><br/><br/><br/>
                        <div class="controls">
                            1：
                            <if condition="$rx['rt11'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt11" value="{$examMeasure.em0}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt11" value="{$rx.rt11}">
                            </if>
                            <input type="text" class="input" style="width: 90px" value="原围长：{$examMeasure.em0}" readonly>
                            &nbsp&nbsp&nbsp&nbsp
                            6：
                            <if condition="$rx['rt16'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt16" value="{$examMeasure.em7}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt16" value="{$rx.rt16}">
                            </if>
                                <input type="text" class="input" style="width: 100px" value="原左右径：{$examMeasure.em7}" readonly>
                        </div>
                        <div class="controls">
                            2：
                            <if condition="$rx['rt12'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt12" value="{$examMeasure.em1}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt12" value="{$rx.rt12}">
                            </if>
                            <input type="text" class="input" style="width: 90px" value="原围长：{$examMeasure.em1}" readonly>
                            &nbsp&nbsp&nbsp&nbsp
                            7：
                            <if condition="$rx['rt17'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt17" value="{$examMeasure.em8}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt17" value="{$rx.rt17}">
                            </if>
                            <input type="text" class="input" style="width: 100px" value="原左右径：{$examMeasure.em8}" readonly>
                        </div>
                        <div class="controls">
                            <span style="margin-left: 435px"></span>
                            11：
                            <if condition="$rx['rt21'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt21" value="{$examMeasure.em21}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt21" value="{$rx.rt21}">
                            </if>
                            <input type="text" class="input" style="width: 100px" value="原高度：{$examMeasure.em21}" readonly>
                        </div>
                        <div class="controls">
                            3：
                            <if condition="$rx['rt13'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt13" value="{$examMeasure.em4}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt13" value="{$rx.rt13}">
                            </if>
                            <input type="text" class="input" style="width: 90px" value="原围长：{$examMeasure.em4}" readonly>
                            &nbsp&nbsp&nbsp&nbsp
                            8：
                            <if condition="$rx['rt18'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt18" value="{$examMeasure.em11}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt18" value="{$rx.rt18}">
                            </if>
                            <input type="text" class="input" style="width: 100px" value="原左右径：{$examMeasure.em11}" readonly>
                        </div>
                        <div class="controls">
                            4：
                            <if condition="$rx['rt14'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt14" value="{$examMeasure.em5}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt14" value="{$rx.rt14}">
                            </if>
                            <input type="text" class="input" style="width: 90px" value="原围长：{$examMeasure.em5}" readonly>
                            &nbsp&nbsp&nbsp&nbsp
                            9：
                            <if condition="$rx['rt19'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt19" value="{$examMeasure.em12}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt19" value="{$rx.rt19}">
                            </if>
                            <input type="text" class="input" style="width: 100px" value="原左右径：{$examMeasure.em12}" readonly>
                            &nbsp&nbsp
                            12：
                            <if condition="$rx['rt22'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt22" value="{$examMeasure.em22}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt22" value="{$rx.rt22}">
                            </if>
                            <input type="text" class="input" style="width: 100px" value="原高度：{$examMeasure.em22}" readonly>
                        </div>
                        <div class="controls">
                            5：
                            <if condition="$rx['rt15'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt15" value="{$examMeasure.em6}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt15" value="{$rx.rt15}">
                            </if>
                            <input type="text" class="input" style="width: 90px" value="原围长：{$examMeasure.em6}" readonly>
                            &nbsp&nbsp
                            10：
                            <if condition="$rx['rt20'] eq ''">
                                <input type="text" class="input" style="width: 40px" name="rt20" value="{$examMeasure.em13}">
                                <else/>
                                <input type="text" class="input" style="width: 40px" name="rt20" value="{$rx.rt20}">
                            </if>
                            <input type="text" class="input" style="width: 100px" value="原左右径：{$examMeasure.em13}" readonly>
                        </div>
                    </div>

                    <hr class="half-rule">
                    <!--div class="control-group">
                        <label class="control-label"></label>
                        <span style="font-weight: bold; font-size: 18px; margin-left: -140px">切割线：</span>
                        <div style="margin-top: 10px" class="control-group">
                            <label style="width:260px;height:auto; display: none;margin: 10px 40px 10px 10px;" class="control-label trimline" id="A-trimline"><img src="/Template/images/trimlineA.png?v={$imgVersion}"></label>
                            <label style="width:260px;height:auto; display: none;margin: 10px 40px 10px 10px;" class="control-label trimline" id="B-trimline"><img src="/Template/images/trimlineB.png?v={$imgVersion}"></label>
                            <label style="width:260px;height:auto; display: none;margin: 10px 40px 10px 10px;" class="control-label trimline" id="C-trimline"><img src="/Template/images/trimlineC.png?v={$imgVersion}"></label>
                            <label style="width:260px;height:auto; display: none;margin: 10px 40px 10px 10px;" class="control-label trimline" id="E-trimline"><img src="/Template/images/trimlineE.png?v={$imgVersion}"></label>
                            <label class="control-label">切割线：</label>
                            <div class="controls">
                                前：
                                <input type="text" class="input" style="width: 600px" name="rt33" value="{$rx.rt33}">
                            </div>
                            <br/>
                            <div class="controls">
                                后：
                                <input type="text" class="input" style="width: 600px" name="rt23" value="{$rx.rt23}">
                            </div>
                            <br/>
                            <div class="controls">
                                左：
                                <input type="text" class="input" style="width: 600px" name="rt24" value="{$rx.rt24}">
                            </div>
                            <br/>
                            <div class="controls">
                                右：
                                <input type="text" class="input" style="width: 600px" name="rt25" value="{$rx.rt25}">
                            </div>
                        </div>
                    </div>
                    <hr class="half-rule"-->
                    <div class="control-group">
                        <label class="control-label">材料：</label>
                        <div class="controls">
                            外壳：
                            <select name="rt26">
                                {:getFormDictSelectOptionHtml($rx['rt26'],'shell','rx_sco',1)}
                            </select>
                        </div>
                        <div class="controls">
                            厚度：
                            <select name="rt27">
                                {:getFormDictSelectOptionHtml($rx['rt27'],'sickness_shell','rx_sco',1)}
                            </select>
                            <input type="text" class="input"  style="width: 490px" name="rt28" value="{$rx.rt28}" placeholder="其他材料及厚度">
                        </div>
                        <div class="controls">
                            内衬：
                            <select name="rt29">
                                {:getFormDictSelectOptionHtml($rx['rt29'],'inner','rx_sco',1)}
                            </select>
                        </div>
                    </div>
                    <hr class="half-rule">
                    <div class="control-group">
                        <label class="control-label">尼龙搭扣：</label>
                        <div class="controls">
                            材质：
                            <input type="text" class="input"  style="width: 200px" name="rt30" value="{$rx.rt30}" >
                        </div>
                        <div class="controls">
                            宽度：
                            <input type="text" class="input"  style="width: 200px" name="rt31" value="{$rx.rt31}" >
                        </div>
                        <div class="controls">
                            固定说明：
                            <input type="text" class="input"  style="width: 500px" name="rt32" value="{$rx.rt32}" >
                        </div>
                    </div>
                    <hr class="half-rule">
                </div>

                <div class="control-group">
                    <label class="control-label">备注：</label>
                    <div class="controls">
                        <textarea style="height:5rem; width: 40rem;" name="note">{$rx.note}</textarea>
                    </div>
                </div>
                <hr class="half-rule">
                <div class="control-group">
                    <label class="control-label">价格：</label>
                    <div class="controls">
                        <input type="text" class="input" style="width: 100px" name="price" value="{$rx.price}">
                        元
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">其它矫形器及价格：</label>
                    <div class="controls">
                        <input type="text" class="input" style="width: 480px" name="other_type" value="{$rx.other_type}">
                        价格：
                        <input type="text" class="input" style="width: 100px" name="other_price" value="{$rx.other_price}">
                        元
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">预计交付日期：</label>
                    <div class="controls">
                        <input type="text" class="input J_date" style="width: 100px" name="delivery_date" value="{$rx.delivery_date}">
                    </div>
                </div>
                <hr class="half-rule">
                <div class="control-group">
                    <div class="controls">
                        <label class="checkbox inline" style="font-weight: bold">
                            <input type="checkbox"  name="completed">完成（勾选后提交处方将无法再次修改）
                        </label>
                    </div>
                </div>

            </fieldset>
            <div class="form-actions">
                <input type="hidden" name="rxId" value="{$rxId}" />
                <input type="hidden" name="id" value="{$id}" />
                <button type="submit" class="btn btn-primary btn_submit ">更新</button>
                <a class="btn" href="__URL__">返回</a>
            </div>
        </form>
    </div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>